package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.SqlType;
import org.zoomdev.zoom.dao.ddl._DDL_Column;
import org.zoomdev.zoom.dao.ddl._DDL_Primary;
import org.zoomdev.zoom.dao.ddl._DDL_Table;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "s_error", simpleName = "", engine = MysqlDriver.InnoDB, comment = "清算错误信息")
public class _DDL_SError {

    @_DDL_Primary()
    @_DDL_Column(name = "id", type = SqlType.INT, nullable = false, autoIncrement = true, comment = "id")
    private Integer id;

    @_DDL_Column(name = "cr_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "创建时间")
    private java.sql.Timestamp crTime;

    @_DDL_Column(name = "date", type = SqlType.INT_UNSIGNED, comment = "日期")
    private Long date;

    @_DDL_Column(name = "type", type = SqlType.BOOLEAN, nullable = false, comment = "类型 0:短账 1:长账 2:信息不对称")
    private Boolean type;

    @_DDL_Column(name = "local_id", type = SqlType.BIGINT_UNSIGNED, comment = "本地订单号")
    private java.math.BigInteger localId;

    @_DDL_Column(name = "local_amt", type = SqlType.DECIMAL, size = 8, scale = 2, comment = "本地金额")
    private java.math.BigDecimal localAmt;

    @_DDL_Column(name = "ch_id", type = SqlType.VARCHAR, size = 30, comment = "第三方订单")
    private String chId;

    @_DDL_Column(name = "ch_amt", type = SqlType.DECIMAL, size = 8, scale = 2, comment = "第三方金额")
    private java.math.BigDecimal chAmt;

    @_DDL_Column(name = "remark", type = SqlType.VARCHAR, size = 300, comment = "备注，比如如何处理的")
    private String remark;

    @_DDL_Column(name = "state", type = SqlType.BOOLEAN, nullable = false, comment = "状态 0:未处理 1：已经处理")
    private Boolean state;

    @_DDL_Column(name = "rp_id", type = SqlType.BIGINT_UNSIGNED, comment = "")
    private java.math.BigInteger rpId;

}
